<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>BIBLIO: /home/marco/workspace/biblio/src/biblio.h File Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">BIBLIO
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#define-members">Defines</a>  </div>
  <div class="headertitle">
<div class="title">/home/marco/workspace/biblio/src/biblio.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Header file con macro di utilità generale per il progetto Biblio.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;errno.h&gt;</code><br/>
<code>#include &lt;stdlib.h&gt;</code><br/>
</div>
<p><a href="biblio_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="define-members"></a>
Defines</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8fe83ac76edc595f6b98cd4a4127aed5"></a><!-- doxytag: member="biblio.h::ERROR" ref="a8fe83ac76edc595f6b98cd4a4127aed5" args="" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><b>ERROR</b>&#160;&#160;&#160;-1</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aba51915c87d64af47fb1cc59348961c9"></a><!-- doxytag: member="biblio.h::OK" ref="aba51915c87d64af47fb1cc59348961c9" args="" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><b>OK</b>&#160;&#160;&#160;0</td></tr>
<tr><td colspan="2"><div class="groupHeader">Stringhe per il protocollo di comunicazione tra client e server</div></td></tr>
<tr><td colspan="2"><div class="groupText"><p>Utilizzate dal client per impostare il messaggio per le biblioteche, e dal server per parsare i messaggi. </p>
</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a10ecc59b2553c48e42c67334c5f90ced"></a><!-- doxytag: member="biblio.h::_AUTORE" ref="a10ecc59b2553c48e42c67334c5f90ced" args="" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><b>_AUTORE</b>&#160;&#160;&#160;&quot;autore&quot;</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a09da6dc51d2d35940cbc8bb474af4032"></a><!-- doxytag: member="biblio.h::_TITOLO" ref="a09da6dc51d2d35940cbc8bb474af4032" args="" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><b>_TITOLO</b>&#160;&#160;&#160;&quot;titolo&quot;</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a97ed15f89a3d0a590290a9604d0cc7d6"></a><!-- doxytag: member="biblio.h::_EDITORE" ref="a97ed15f89a3d0a590290a9604d0cc7d6" args="" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><b>_EDITORE</b>&#160;&#160;&#160;&quot;editore&quot;</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5c7764ba36dab73f7cca2778aad75ada"></a><!-- doxytag: member="biblio.h::_LUOGO_PUBBLICAZIONE" ref="a5c7764ba36dab73f7cca2778aad75ada" args="" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><b>_LUOGO_PUBBLICAZIONE</b>&#160;&#160;&#160;&quot;luogo_pubblicazione&quot;</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a45fd2d15bfaa116d8bf4446719b60e2e"></a><!-- doxytag: member="biblio.h::_ANNO" ref="a45fd2d15bfaa116d8bf4446719b60e2e" args="" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><b>_ANNO</b>&#160;&#160;&#160;&quot;anno&quot;</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7136813f6bb2bad0d48ea10c7184d62e"></a><!-- doxytag: member="biblio.h::_COLLOCAZIONE" ref="a7136813f6bb2bad0d48ea10c7184d62e" args="" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><b>_COLLOCAZIONE</b>&#160;&#160;&#160;&quot;collocazione&quot;</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa1112264129087e6a865e0cf24ba562d"></a><!-- doxytag: member="biblio.h::_DESCRIZIONE_FISICA" ref="aa1112264129087e6a865e0cf24ba562d" args="" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><b>_DESCRIZIONE_FISICA</b>&#160;&#160;&#160;&quot;descrizione_fisica&quot;</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8dacf3cce326d7d1d2aece9a363d4ce7"></a><!-- doxytag: member="biblio.h::_NOTA" ref="a8dacf3cce326d7d1d2aece9a363d4ce7" args="" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><b>_NOTA</b>&#160;&#160;&#160;&quot;nota&quot;</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5948e6d634c74f41d03220d6ddb3a405"></a><!-- doxytag: member="biblio.h::_PRESTITO" ref="a5948e6d634c74f41d03220d6ddb3a405" args="" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><b>_PRESTITO</b>&#160;&#160;&#160;&quot;prestito&quot;</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adf723e3e0a46ccf2d9980fa48d139fe3"></a><!-- doxytag: member="biblio.h::MESSAGE_FIELDS" ref="adf723e3e0a46ccf2d9980fa48d139fe3" args="" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><b>MESSAGE_FIELDS</b>&#160;&#160;&#160;{_AUTORE, _TITOLO, _EDITORE, _LUOGO_PUBBLICAZIONE,	_ANNO, _COLLOCAZIONE, _DESCRIZIONE_FISICA, _NOTA, _PRESTITO}</td></tr>
<tr><td colspan="2"><div class="groupHeader">Macro per l'allocazione di memoria e controllo errore</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0fc07b428764f82ab9c83e6dc035b196"></a><!-- doxytag: member="biblio.h::MALLOC" ref="a0fc07b428764f82ab9c83e6dc035b196" args="(p, s)" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><b>MALLOC</b>(p, s)&#160;&#160;&#160;p = malloc(s); if (p == NULL) {errno = ENOMEM; return(NULL);} else {;}</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a84d698668a49f7ffa081099c892d4bf5"></a><!-- doxytag: member="biblio.h::MALLOC_M1" ref="a84d698668a49f7ffa081099c892d4bf5" args="(p, s)" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><b>MALLOC_M1</b>(p, s)&#160;&#160;&#160;p = malloc(s); if (p == NULL) {errno = ENOMEM; return(-1);} else {;}</td></tr>
<tr><td colspan="2"><div class="groupHeader">Macro di controllo parametri iniziali delle funzioni</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9d199b051ef9c0cd8fd2c566ebedc748"></a><!-- doxytag: member="biblio.h::NULL_PARAM" ref="a9d199b051ef9c0cd8fd2c566ebedc748" args="(p)" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><b>NULL_PARAM</b>(p)&#160;&#160;&#160;if (p == NULL) {errno = EINVAL; return(NULL);} else {;}</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af0edc8aabdfd1c81c3bd1168cfd30aa6"></a><!-- doxytag: member="biblio.h::NULL_PAR_M1" ref="af0edc8aabdfd1c81c3bd1168cfd30aa6" args="(p)" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><b>NULL_PAR_M1</b>(p)&#160;&#160;&#160;if (p == NULL) {errno = EINVAL; return(-1);} else {;}</td></tr>
<tr><td colspan="2"><div class="groupHeader">Macro per la gestione degli errori</div></td></tr>
<tr><td colspan="2"><div class="groupText"><p>Nomenclatura: EC_(valore controllato)_(valore restituito) </p>
</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adaea2604dc24bb143b14111b755841f2"></a><!-- doxytag: member="biblio.h::EC_M1" ref="adaea2604dc24bb143b14111b755841f2" args="(s)" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><b>EC_M1</b>(s)&#160;&#160;&#160;if ((s) == -1) {return(-1);}</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4d79235ad878a55fe2f76df64e8849ee"></a><!-- doxytag: member="biblio.h::EC_NULL_M1" ref="a4d79235ad878a55fe2f76df64e8849ee" args="(s)" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><b>EC_NULL_M1</b>(s)&#160;&#160;&#160;if((s) == NULL) {return(-1);}</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Header file con macro di utilità generale per il progetto Biblio. </p>
<dl class="author"><dt><b>Author:</b></dt><dd>: "Marco Luisi" Si dichiara che il contenuto di questo file e' in ogni sua parte opera originale dell' autore. </dd></dl>
</div></div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Fri Jun 29 2012 10:36:44 for BIBLIO by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
